<div style="margin:10px">
  <%=link_to image_tag("add.png" , :size => "40x40" ), new_aggregation_path, {:title => 'Add a new data aggregation', :target => "_self"} %>
  <p class="subtitle"><%=link_to 'New Aggregation', new_aggregation_path, {:title => 'Add a new data aggregation', :target => "_self"} %></p>
</div>
<table id="manager" cellspacing="0">
<% for aggregation in @aggregations -%>
  <tr><td colspan="4" class="manage_title"><%=aggregation.title %></td></tr>
  <tr>
    <td>
      <%= link_to(image_tag("add.png" , :size => "40x40" ), new_aggregation_feed_path(aggregation), {:title => "Add a new feed.", :target => "_self"}) %>
	    <p class="subtitle"><%= link_to('Add', new_aggregation_feed_path(aggregation), {:title => "Add a new feed.", :target => "_self"}) %></p>
	  </td> 
    <td>
      <%= link_to(image_tag("managebutton.png" , :size => "40x40" ), aggregation_feeds_path(aggregation), {:title => "Manage feeds.", :target => "_self"}) %>
	    <p class="subtitle"><%= link_to('Manage', aggregation_feeds_path(aggregation), {:title => 'Manage Feeds', :target => "_self"}) %></p>
	  </td>
    <td>
		  <%= link_to(image_tag("edit.png" , :size => "40x40" ), edit_aggregation_path(aggregation), {:title => "Edit feed.", :target => "_self"}) %>
	    <p class="subtitle"><%= link_to('Edit', edit_aggregation_path(aggregation), {:title => 'Edit ' + aggregation.title, :target => "_self"}) %></p>
	  </td>
	  <td>
		  <%= link_to(image_tag("delete.png" , :size => "40x40" ), aggregation_path(aggregation), {:confirm => 'Are you sure you want to delete this aggregation?', :target => "_self", :method => :delete}) %>
	    <p class="subtitle"><%= link_to 'Remove', aggregation_path(aggregation), {:confirm => 'Are you sure you want to delete this aggregation?', :target => "_self", :method => :delete} %></p>
	  </td>
	  <td>
			<a href="/aggregations/<%=aggregation.id%>.rss" target="_blank" title="RSS feed for all entries in <%=aggregation.title%>"><img src="/images/feeds.png" width="40" height="40" alt="feed icon" /></a>
		  <p class="subtitle"><a href="/aggregations/<%=aggregation.id%>.rss" target="_blank" title="RSS feed for all entries in <%=aggregation.title%>">All RSS</a></p>
	  </td>
	  <td>
			<a href="/users/<%=@user.id%>/aggregations/<%=aggregation.id%>/show_marked.rss" target="_blank" title="RSS feed for all entries in <%=aggregation.title%>"><img src="/images/feeds.png" width="40" height="40" alt="feed icon" /></a>
		  <p class="subtitle"><a href="/users/<%=@user.id%>/aggregations/<%=aggregation.id%>/show_marked.rss" target="_blank" title="RSS feed for all entries marked in <%=aggregation.title%>">Marked RSS</a></p>
	  </td>    
  </tr>
  <tr><td colspan="4"></td></tr>
<% end -%>
</table>